<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/update">
    <table>
        <tr th:object="${user}">   <!--th:value:替换值-->
            <input type="hidden" th:value="*{id}" name="id">
            姓名：<input type="text"  th:value="*{name}" name="name"><br>
            性别：<input type="text"  th:value="*{gender}"  name="gender"><br>
            密码：<input type="text"  th:value="*{password}" name="password"><br>
            年龄：<input type="date"  th:value="*{age}" name="age"><br>
            tel：<input type="text"   th:value="*{tel}"  name="tel"><br>
               <input type="submit" value="立即修改">
        </tr>
    </table>
</form>
</body>
</html>